<link type="text/css" href="/admins/js/pagerView/pager-view.css" rel="stylesheet" />
<link type="text/css" href="/admins/js/jquery/css/ui-lightness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript">
    $(function(){
    
        $.datepicker.setDefaults( $.datepicker.regional[ "zh-CN" ] );
        $( "#form1 #dateinbegin" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
        $( "#form1 #dateinend" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
    });
</script>
<form action="/admini/manageuser/paybill/" method="get" style="margin:0px" id="form1">
    <div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;" id='sel'>
        <label for="member">快速搜索：</label><input type="text" id="quick" name="quick" value="<?php echo $this->quick; ?>" />
        <label for="starttime">发布时间：</label><input type="text" id="dateinbegin" name="dateinbegin" value="<?php echo $this->dateinbegin; ?>" />
        <label for="endtime">--</label><input type="text" id="dateinend" name="dateinend" value="<?php echo $this->dateinend; ?>" />
        <input type="submit" id="queryButton" value="查询"/>
    </div>
</form>
    <div class="dataTable">
        <table>  
            <tr>
                <th class="w0" width="4%">ID</th>
                <th class="w1" width="8%">用户名</th>
                <th class="w2" width="8%">仓库号</th>
                <th class="w3" width="10%">交易号</th>
                <th class="w4" width="10%">关联id</th>  
                <th class="w5" width="10%">支付类型</th>
                <th class="w6" width="8%">应付金额</th>
                <th class="w7" width="20%">计算公式</th>
                <th class="w8" width="20%">实收金额</th>
                <th class="w9" width="8%">状态</th>
                <th class="w10" width="8%">类型</th>
                <th class="w11" width="10%">发布时间</th>
                <th class="w12" width="10%">备注</th>
            </tr>  
        
            <?php if($this->paybilllist != ''){
                foreach ($this->paybilllist as $Item) { ?> 
                <tr>
                    <td class="w1" nowrap align="center"><?php echo $Item->Id;?></td>
                    <td class="w1" nowrap align="center"><?php echo $Item->userinfo!=null?$Item->userinfo->nikename:"用户出错"; ?></td>
                    <td class="w2" nowrap align="center"><?php echo $Item->userinfo!=null?$Item->userinfo->storeno:"用户出错"; ?></td>
                    <td class="w3" nowrap align="center"><?php echo $Item->txnId; ?></td>
                    <td class="w4" nowrap align="center"><?php echo $Item->domainId;?></td>
                    <td class="w5" nowrap align="center"><?php echo $Item->payname; ?></td>
                    <td class="w6" nowrap align="center">￥<?php echo $Item->money; ?></td>
                    <td class="w7" nowrap align="center"><?php echo $Item->PayFormula;?></td>
                    <td class="w8" nowrap align="center"><?php echo $Item->usmoney!=0?("$".($Item->usmoney)):("￥".$Item->money); ?></td>
                    <td class="w9" nowrap align="center" <?php if($Item->status == Application_Model_PayBill::PAY_STATUS_SUCCESS){echo "style='color:#c00;'"; }?>><?php echo $Item->statusname;?></td>
                    <td class="w10" nowrap align="center"><?php echo $Item->typenames; ?></td>
                    <td class="w10" nowrap align="center"><?php echo $Item->dateCreated; ?></td>
                    <td class="w12" nowrap align="center"><?php echo $Item->description; ?></td>
                 </tr>         
            <?php } }?>
        </table>
    </div>                
    <div class="toolbar">
        <?php echo $this->partial('paging.phtml', array("pages" => $this->paybillall,"pamas"=>"quick=".$this->quick."&dateinbegin=$this->dateinbegin&dateinend=$this->dateinend")); ?>
    </div>   
